#ifndef LOK2CHATDISPLAY_H
#define LOK2CHATDISPLAY_H

#include "SDLTextBox.h"
#include "SDLHScrollBar.h"
#include "structs.h"

class SDLHScrollBar;

class LOK2ChatDisplay : public SDLTextBox {
public:
	//LOK2ChatDisplay();
	LOK2ChatDisplay(SDL_Surface *_screen, TTF_Font *_font, SDL_Event *_event, 
		SDLClipboard *_pClipboard, int _max_len = 256);
	//~LOK2ChatDisplay();

	void inputHandler();
	//int makeLines();
	int makeLines(std::vector < std::pair < int, std::string > > data, int width);

	void display();

	void addLine(std::vector < std::pair <int, std::string> > data);
	SDL_Rect getRect();
	void doAction(int handle, int mesage);
	void setScrollStart(int start);
private:
	std::vector< std::vector < std::pair < int, std::string > > > m_Data;
	int m_ScrollStart;
};

#endif
